<%@ page language="java" import="java.util.*,com.qm.hibernate.Tuser" pageEncoding="utf-8"%>
<div id = left>
<img src = "../Img/yourImage.jpg" style = "width:200;height:300">
<ul>
<% Tuser friend = (Tuser)session.getAttribute("friend");%>

<li><%=friend.getName() %></li>
<%if (friend.getSignature()!= null) {%> <li><%=friend.getSignature() %></li><%} %>

</ul>
<% Boolean isFriends = (Boolean)session.getAttribute("isFriends");
 %>
<%if (!isFriends){ %>
<input type = "button" value = "加为好友" onclick = "window.location='add'"/>
<input type = "button" value = "删除好友" onclick = "window.location='del'" disabled/>
<%}else { %>
<input type = "button" value = "加为好友" onclick = "window.location='add'" disabled/>
<input type = "button" value = "删除好友" onclick = "window.location='del'"/>
<%} %>
</div>